﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserCenter.master" AutoEventWireup="true"
    CodeFile="UserMain.aspx.cs" Inherits="Account_UserMain" %>

<asp:Content ID="Content4" ContentPlaceHolderID="uHeader" runat="Server">
    <link href="../Styles/tab/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/Jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="../Scripts/Plug/tab/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Scripts/Plug/tab/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Scripts/Plug/tab/jquery.ui.tabs.js" type="text/javascript"></script>
    <script src="../Scripts/Account/UserMainScript.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
    <script src="../Scripts/common.js" type="text/javascript"></script>
    <script src="../Scripts/ajaxFileUpload.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#divUp").load("uploadAvatar.htm?n=" + Math.random());
        })
        function OnAvatarUploaded(file) {
            //            $("#img").attr("src", "../Handler/" + file + "?n=" + Math.random()); //防止缓存
            $("#face_show").attr("src", "../Handler/" + file + "?n=" + Math.random()); //防止缓存
            $("#avatarFile")[0].value = ""
        }

      
    </script>
    <style>
        td text
        {
            width: 170px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cph" runat="Server">
    <form id="form1" runat="server">
    <input type="hidden" runat="server" id="hid_uid" />
    <div style="padding: 10px auto auto 10px; width: 75%; float: right;">
        <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
            <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"
                role="tablist" style="list-style: none outside none;">
                <li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab"
                    tabindex="0" aria-controls="tabs-1" aria-labelledby="ui-id-1" aria-selected="true">
                    <a href="#tabs-1" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">
                        上传头像</a></li>
                <li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-2"
                    aria-labelledby="ui-id-2" aria-selected="false"><a href="#tabs-2" class="ui-tabs-anchor"
                        role="presentation" tabindex="-1" id="ui-id-2">个人资料</a></li>
                <li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-3"
                    aria-labelledby="ui-id-3" aria-selected="false"><a href="#tabs-3" class="ui-tabs-anchor"
                        role="presentation" tabindex="-1" id="ui-id-3">修改密码</a></li>
            </ul>
            <div id="tabs-1" aria-labelledby="ui-id-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom"
                role="tabpanel" aria-expanded="true" aria-hidden="false">
                <div style="height: 500px; clear: both; margin: 80px auto; width: 800px;">
                    <%-- <div style="width: 175px; height: 175px; float: left; border: 1px solid #ccc;">
                        <img src="" id="img" style="width: 175px; height: 175px" />
                    </div>--%>
                    <div id="divUp" style="width: 520px; float: left; margin-left: 20px">
                    </div>
                </div>
            </div>
            <div id="tabs-2" aria-labelledby="ui-id-2" class="ui-tabs-panel ui-widget-content ui-corner-bottom"
                role="tabpanel" style="display: none;" aria-expanded="false" aria-hidden="true">
                <table>
                    <tr>
                        <td>
                            Email：
                        </td>
                        <td>
                            <input type="text" runat="server" id="txt_Email" />
                            <img id="emailErrImg" style="display: none" />
                            <span id="emailMsg"></span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            导游证号：
                        </td>
                        <td>
                            <input type="text" runat="server" id="txt_GuideNo" />
                        </td>
                    </tr>
                    <%--  <tr>
                        <td>
                            导游证图片：
                        </td>
                        
                        <td>
                        <input type="text" runat="server" id="txt_GuideNoImg" />
                        </td>
                    </tr>--%>
                    <tr>
                        <td>
                            是否提供外语服务：
                        </td>
                        <td>
                            <input type="radio" name="isEnglish" value="1" />是 &nbsp;&nbsp;<input type="radio"
                                name="isEnglish" value="0" />否
                        </td>
                    </tr>
                    <tr>
                        <td>
                            是否提供出境又服务：
                        </td>
                        <td>
                            <input type="radio" name="isLeave" value="1" />是 &nbsp;&nbsp;<input type="radio"
                                name="isLeave" value="0" />否
                        </td>
                    </tr>
                    <tr>
                        <td class="2" style="text-align: center">
                            <input type="button" runat="server" id="btn_updUser" value=" 修  改 " />
                        </td>
                    </tr>
                </table>
            </div>
            <div id="tabs-3" aria-labelledby="ui-id-3" class="ui-tabs-panel ui-widget-content ui-corner-bottom"
                role="tabpanel" style="display: none;" aria-expanded="false" aria-hidden="true">
                <table>
                    <tr>
                        <td>
                            旧密码：
                        </td>
                        <td>
                            <input type="password" id="txt_pwd" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            新密码：
                        </td>
                        <td>
                            <input type="password" id="txt_newPwd" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            确认新密码：
                        </td>
                        <td>
                            <input type="password" id="txt_rePwd" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Button ID="btn_changPwd" runat="server" Text="修改密码" OnClick="btn_changPwd_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</asp:Content>
